package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.KehuduanMapper;
import com.ruoyi.system.domain.Kehuduan;
import com.ruoyi.system.service.IKehuduanService;

/**
 * 客户端Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-08-10
 */
@Service
public class KehuduanServiceImpl implements IKehuduanService 
{
    @Autowired
    private KehuduanMapper kehuduanMapper;

    /**
     * 查询客户端
     * 
     * @param khdId 客户端主键
     * @return 客户端
     */
    @Override
    public Kehuduan selectKehuduanByKhdId(Long khdId)
    {
        return kehuduanMapper.selectKehuduanByKhdId(khdId);
    }

    /**
     * 查询客户端列表
     * 
     * @param kehuduan 客户端
     * @return 客户端
     */
    @Override
    public List<Kehuduan> selectKehuduanList(Kehuduan kehuduan)
    {
        return kehuduanMapper.selectKehuduanList(kehuduan);
    }

    /**
     * 新增客户端
     * 
     * @param kehuduan 客户端
     * @return 结果
     */
    @Override
    public int insertKehuduan(Kehuduan kehuduan)
    {
        return kehuduanMapper.insertKehuduan(kehuduan);
    }

    /**
     * 修改客户端
     * 
     * @param kehuduan 客户端
     * @return 结果
     */
    @Override
    public int updateKehuduan(Kehuduan kehuduan)
    {
        return kehuduanMapper.updateKehuduan(kehuduan);
    }

    /**
     * 批量删除客户端
     * 
     * @param khdIds 需要删除的客户端主键
     * @return 结果
     */
    @Override
    public int deleteKehuduanByKhdIds(Long[] khdIds)
    {
        return kehuduanMapper.deleteKehuduanByKhdIds(khdIds);
    }

    /**
     * 删除客户端信息
     * 
     * @param khdId 客户端主键
     * @return 结果
     */
    @Override
    public int deleteKehuduanByKhdId(Long khdId)
    {
        return kehuduanMapper.deleteKehuduanByKhdId(khdId);
    }
}
